<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>TESTER</title>
</head>
<body>

<h1>咖啡下单接口</h1>
<p>
1、根据返回的order_sn和total_price,提交到支付宝或微信支付。<BR>

	</p>
<form name="form" method="post" onsubmit="javascript:return go()">
签名：<input name="sign" id="sign" value="" />  <br>
咖啡馆coffee_shop_id：<input name="coffee_shop_id" id="coffee_shop_id" value="" />  <br>  
桌号desk：<input name="desk" id="desk" value="" />  <br>
备注memo：<input name="memo" id="memo" value="" />  <br>

支付方式pay_method：<input name="pay_method" id="pay_method" value="" /> alipay/wxpay/yue <br>

要结算的产品：
<textarea style="width:70%" rows="22" name="coffees">{	
	"coffees":[
		{
			"coffee_id":"1",
			"quantity":"2"
		},
		{
			"coffee_id":"2",
			"quantity":"1"
		}
	]
}</textarea><br/>
<input type=submit value=submit>
</form>

</body>
</html>

<script>
function go(){
	document.form.action = "/api.php?app=coffee_cart&act=order&version=&sign="+document.getElementById('sign').value;
	document.form.submit();
	return true;
}
</script>